<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="centre/manage/include :: header"></head>

<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="carForm">
							<input type="hidden" th:value="${car.id}" id="id" name="id">
							<table class="table table-bordered table-condensed">
								<tbody>
								<tr>
									<th class="required" style="text-align: right;">配送员姓名</th>
									<td><input id="username" name="username" class="form-control" type="text" th:value="${car.username}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">编号</th>
									<td><input id="code" name="code" class="form-control" type="text" th:value="${car.code}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">手机号码</th>
									<td><input id="mobile" name="mobile" class="form-control" type="text" th:value="${car.mobile}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">座机</th>
									<td><input id="studio" name="studio" class="form-control" type="text" th:value="${car.studio}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">QQ/微信</th>
									<td><input id="qq" name="qq" class="form-control" type="text" th:value="${car.qq}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">联系地址</th>
									<td><input id="address" name="address" class="form-control" type="text" th:value="${car.address}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">仓库名</th>
									<td>
									    <input id="storeroomId" name="storeroomId" class="form-control" type="hidden" th:value="${car.storeroomId}"/>
									    <input id="storeroom" name="storeroom" placeholder="点击选择仓库" class="form-control" type="text" th:value="${car.storeroom}" readonly  onclick="chooseWarehouse()"/>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">仓库地址</th>
									<td><input id="storeroomAddress" name="storeroomAddress" class="form-control" type="text" th:value="${car.storeroomAddress}"/></td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">配送城市</th>
									<td>
									   <div class="gg-formDetail gg-font0" data-toggle="distpicker" th:attr="data-province=${car.province},data-city=${car.city}">
		                                    <div class="gg-area">
		                                        <select class="form-control" id="province" name="province" onchange="clearXiaoqu()">
		                                        </select>
		                                    </div>
		                                    <div class="gg-area">
		                                        <select class="form-control" id="city" name="city" onchange="clearXiaoqu()">
		                                        </select>
		                                    </div>
	                                   </div>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">门店选择</th>
									<td>
										<input id="mids" name="mids" type="hidden" th:value="${car.mids}">
										<input id="xqs" name="xqs" type="hidden" th:value="${car.xiaoqu}">
									    <input id="xiaoqu" name="xiaoqu" th:value="${car.xiaoqu}" placeholder="点击添加配送门店" class="form-control" type="text" th:value="${car.xiaoqu}" readonly  onclick="chooseXiaoQus()"/>
									</td>
								</tr>
								<tr>
									<th class="required" style="text-align: right;">是否启用</th>
									<td>
                                       <label class="radio-inline"><input th:field="*{car.status}" type="radio" name="status" value="1"/>是</label> 
							           <label class="radio-inline"><input th:field="*{car.status}" type="radio" name="status" value="0"/>否</label>
                                    </td>
								</tr>
								</tbody>
							</table>
							<div class="form-group text-center">
								<div class="col-sm-8 col-sm-offset-2">
									<button type="submit"  class="btn btn-primary"><i class="fa fa-check"></i>提交</button>
									<div class="btn btn-danger" onclick="closeDow()"><i class="fa fa-remove"></i> 关闭</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:include="centre/manage/include::footer"></div>
	<script type="text/javascript" src="/js/appjs/logistics/psPerson/edit.js"></script>
	<script type="text/javascript">
		function closeDow() {
			var index = parent.layer.getFrameIndex(window.name); // 获取窗口索引
			parent.layer.close(index);
		}
	</script>
</body>
</html>
